package com.ruoyi.yipaiju.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yipaiju.mapper.GroupValueAddedOrderMapper;
import com.ruoyi.yipaiju.domain.GroupValueAddedOrder;
import com.ruoyi.yipaiju.service.IGroupValueAddedOrderService;

/**
 * fo_group_value_added_orderService业务层处理
 * 
 * @author liuwp
 * @date 2023-03-01
 */
@Service
public class GroupValueAddedOrderServiceImpl implements IGroupValueAddedOrderService 
{
    @Autowired
    private GroupValueAddedOrderMapper groupValueAddedOrderMapper;

    /**
     * 查询fo_group_value_added_order
     * 
     * @param id fo_group_value_added_order主键
     * @return fo_group_value_added_order
     */
    @Override
    public GroupValueAddedOrder selectGroupValueAddedOrderById(Long id)
    {
        return groupValueAddedOrderMapper.selectGroupValueAddedOrderById(id);
    }

    /**
     * 查询fo_group_value_added_order列表
     * 
     * @param groupValueAddedOrder fo_group_value_added_order
     * @return fo_group_value_added_order
     */
    @Override
    public List<GroupValueAddedOrder> selectGroupValueAddedOrderList(GroupValueAddedOrder groupValueAddedOrder)
    {
        return groupValueAddedOrderMapper.selectGroupValueAddedOrderList(groupValueAddedOrder);
    }

    /**
     * 根据业务主键查询一条记录：fo_group_value_added_order
     *
     * @param groupValueAddedOrder fo_group_value_added_order
     * @return fo_group_value_added_order
     */
    @Override
    public GroupValueAddedOrder selectOneGroupValueAddedOrder(GroupValueAddedOrder groupValueAddedOrder)
    {
        return groupValueAddedOrderMapper.selectOneGroupValueAddedOrder(groupValueAddedOrder);
    }

    /**
     * 新增fo_group_value_added_order
     * 
     * @param groupValueAddedOrder fo_group_value_added_order
     * @return 结果
     */
    @Override
    public int insertGroupValueAddedOrder(GroupValueAddedOrder groupValueAddedOrder)
    {
        return groupValueAddedOrderMapper.insertGroupValueAddedOrder(groupValueAddedOrder);
    }

    /**
     * 修改fo_group_value_added_order
     * 
     * @param groupValueAddedOrder fo_group_value_added_order
     * @return 结果
     */
    @Override
    public int updateGroupValueAddedOrder(GroupValueAddedOrder groupValueAddedOrder)
    {
        return groupValueAddedOrderMapper.updateGroupValueAddedOrder(groupValueAddedOrder);
    }

    @Override
    public int updateGroupValueAddedOrderCondition(GroupValueAddedOrder groupValueAddedOrder, GroupValueAddedOrder groupValueAddedOrderCondition)
    {
        return groupValueAddedOrderMapper.updateGroupValueAddedOrderCondition(groupValueAddedOrder, groupValueAddedOrderCondition);
    }

    /**
     * 批量删除fo_group_value_added_order
     * 
     * @param ids 需要删除的fo_group_value_added_order主键
     * @return 结果
     */
    @Override
    public int deleteGroupValueAddedOrderByIds(Long[] ids)
    {
        return groupValueAddedOrderMapper.deleteGroupValueAddedOrderByIds(ids);
    }

    /**
     * 删除fo_group_value_added_order信息
     * 
     * @param id fo_group_value_added_order主键
     * @return 结果
     */
    @Override
    public int deleteGroupValueAddedOrderById(Long id)
    {
        return groupValueAddedOrderMapper.deleteGroupValueAddedOrderById(id);
    }

    /**
     * 条件删除fo_group_value_added_order
     *
     * @param groupValueAddedOrder fo_group_value_added_order
     * @return 结果
     */
    @Override
    public int deleteGroupValueAddedOrderByCondition(GroupValueAddedOrder groupValueAddedOrder)
    {
        return groupValueAddedOrderMapper.deleteGroupValueAddedOrderByCondition(groupValueAddedOrder);
    }

}
